package com.panda.web.mapper.wechatinfo;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.web.entity.wechatinfo.UserMajorRgpp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMajorRgppMapper extends BaseMapper<UserMajorRgpp> {

    @Delete("delete from user_major_rgpp where openid =#{openid}")
    void deleteByOpenid(String openid);
    @Select("select * from user_major_rgpp where openid=#{openid}")
    List<UserMajorRgpp> findByOpenid(String openid);
}
